<?php
$form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
	));
?>

<table cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>            
            <td>
		<?php
		echo $form->textField($model, 'title', array('autocomplete' => 'off', 'style' => 'width:150px',
		    'placeholder' => t('MSG_ARTICLE_NAME', 'messages'),
		    'class' => 'keyword'
		));
		?>
            </td>
            <td>
		<?php // echo $form->dropDownList($model, 'catid', Html::listData(Category::model()->findAll(), 'id', 'name'), array('empty' => t('MSG_FIRST_CATEGORY', 'messages'))); ?>
		<?php echo $form->dropDownList($model, 'catid', Category::model()->getListDataForParentDropDownList($model->id), array('empty' => t('MSG_FIRST_CATEGORY', 'messages'), 'style' => 'width:200px')); ?>
            </td>
            <td>
		<?php
		echo $form->dropDownList($model, 'status', Html::listData(LGHelpers::getStatusArticle(), 'id', 'name'), array(
		    'empty' => Yii::t('messages', 'MSG_FIRST_ITEM_STATUS')
			)
		);
		?>
            </td>
            <td>
		<?php
		echo $form->dropDownList($model, 'featured', Html::listData(LGHelpers::getFeaturedArticle(), 'id', 'name'), array(
		    'empty' => Yii::t('messages', 'MSG_FIRST_FEATURED')
			)
		);
		?>
            </td>
            <td>
		<?php
		echo $form->dropDownList($model, 'language', Html::listData(Language::model()->findAll(), 'code', 'value'), array(
		    'empty' => array('*' => 'All language')
			)
		);
		?>
            </td>
            <td>
		<?php echo Html::buttonFilter(); ?>
            </td>
        </tr>
    </tbody>
</table>
<?php $this->endWidget(); ?>

